package com.gof.example.decorate;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/6 21:01.
 * haiming.fei@tongdun.cn
 */
public class App {

    public static void main(String[] args) {
        Encryption ne = new NormalEncrypt();
        TwoEncryption ed = new TwoEncryption(ne);
        ed.display();
        Encryption et = new ThreeEncryption(ed);
        et.enc("123");
    }
}
